#!/usr/bin/env python
# test_bond.py

__version__ = "$Revision: 1.3 $"
__author__  = 'Ramesh Balasubramanian <ramesh@finpy.org>'

import finpy
import unittest

class BondTestCase(unittest.TestCase):
	def test_beytbill(self):
		assert finpy.beytbill('11-Feb-2000', '8/7/00', 0.0577) == 0.0602
		assert finpy.beytbill('11-feb-2000', '11-jul-2000', 0.0514) == finpy.beytbill('11-feb-2000', '7/11/2000', 0.0514)

if __name__ == '__main__':
	unittest.main()